package bean.Resource;

import org.springframework.core.io.Resource;

/**
 * 将Resource实例作为Bean的属性
 */
public class ResourceTest {
    private Resource res;

    public ResourceTest() {
    }

    public Resource getRes() {
        return res;
    }

    public void setRes(Resource res) {
        this.res = res;
    }

    public void view(){
        UrlResourceTest.showResourceFile(getRes());
    }
}
